package model;

import java.util.HashSet;

public class StateSet {

	private final HashSet<State> states;

	/**
	 * Constructor of StateSet.
	 */
	public StateSet() {
		this.states = new HashSet<State>();
	}
	/**
	 * Adds the provided {@link State} to this {@link StateSet} when the provided {@link State} is not yet
	 * in this {@link StateSet}.
	 * @param state is the {@link State} to add.
	 */
	public void add(final State state) {
		this.states.add(state);
	}
	/**
	 * Provides whether the provided {@link State} is in this {@link StateSet}.
	 * @param state is the {@link State} that is checked.
	 * @return true when the {@link State} is in this {@link StateSet}. Else false.
	 */
	public boolean contains(final State state) {
		return this.states.contains(state);
	}

}
